package com.yanqu.road.logic.redis;

import com.yanqu.road.utils.redis.JedisHelper;

public class RedisManger {

    private static JedisHelper jedisUtils;

    private static String path;

    public static synchronized void initConfig(String tempPath) {
        path = tempPath;
        if (null == jedisUtils) {
            jedisUtils = JedisHelper.getInstance(path);
        }
    }

    public static synchronized JedisHelper getRedisUtil() {
        return jedisUtils;
    }

}
